﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="FL.Web.BackEnd.BasePage" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="/SFramework/boot.js"></script>
    <!--引入皮肤样式-->
    <%--    <link href="../../SFramework/miniui/themes/blue/skin.css" rel="stylesheet" />--%>
    <style>
        #file_list table{
            width:100%;
        }
         #file_list table tr{
             height:35px;
             line-height:35px;
         }
         .left{
             width:80px;
             text-align:left;
         }
         .right{
             text-align:left;
             border:1px #ccc solid;
         }
    </style>
</head>

<body>
    <div id="file_list">
        <table >
            <tr>
                <td class="left">公告标题：</td>
                <td class="right" id="title"></td>
            </tr>
           <%-- <tr>
                <td class="left">有效日期：</td>
                <td class="right" id="indata"></td>
            </tr>--%>
            <tr>
                <td class="left">公告内容：</td>
                <td class="right" id="content"></td>
            </tr>
        </table>
    </div>

    <script src="/SFramework/ztree/js/jquery.ztree.all-3.3.min.js"></script>
    <script type="text/javascript">
        const_entityID = "<% =EntityId %>",    //实体ID名称
        const_entityName = "<% =EntityName %>",//实体名称
        const_EditEntity = "<% =EditEntity %>",//编辑实体名
        const_functionId = "<% =FunctionID %>",//自定义条件
        const_UserId = "<% = UserId %>",     // 
        const_RootPath = "<%=Server.MapPath("\\").Replace("\\","\\\\").ToLower()%>";
    </script>
    <script type="text/javascript">

        function fnShowFile(data) {
            var _data = data.data;// eval("(" + data + ")");

            //$("#file_list").html("");
            $.each(_data, function (i) {
                console.log(_data[i].title);
                var _strHtml = "<div class=\"fileitem\" ><div filename=\"\"><span>" + _data[i].title + "</span></div></div>";//<div class=\"filename\" title=\"" + _fileName + "\">" + _fileName + "</div>
                console.log(_strHtml); 
                $("#title").html(_data[i].title);
                $("#indata").html(_data[i].indate);
                $("#content").html(_data[i].content);
            });

        }


        $(document).ready(function () {
            console.log(getPar("id"));
            var data = fnGetData("v_t_hr_post_message", " id='" + getPar("id") + "' ", "title");
            fnShowFile(data);
        });
        //获取URL querystring parameter
        function getPar1(source, name) {
            var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i");
            if (reg.test(source)) return RegExp.$2; return "";
        }

        function getPar(name) {
            var _url = "http://" + document.location;
            return getPar1(_url, name);
        }

    </script>
    <script src="/Scripts/common/jquery.action.js"></script>
    <script src="/Scripts/common/jquery.data.js"></script>
    <script src="/SFramework/jquery.json-2.2.js"></script>

</body>
</html>
